home *** CD-ROM | disk | FTP | other *** search
- Path: grumari.bonn.netsurf.de!user
- From: Andreas.Ernst@bonn.netsurf.de (Andreas Ernst)
- Newsgroups: comp.lang.c++
- Subject: fastest way to detect int overflow
- Date: Sun, 07 Apr 1996 09:18:43 +0200
- Organization: Bonner Network Consulting
- Message-ID: <Andreas.Ernst-0704960918430001@grumari.bonn.netsurf.de>
- NNTP-Posting-Host: grumari.bonn.netsurf.de
-
- What is the fastest way to detect arithmetic operations causing an overflow?
- It works by doing some arithmetic with MAX/MIN_<...>, but this seems way
- too slow to me. Isn┤t there a better way ( like checking the carry bit in
- a portable way???).
-
- Thanks, Andreas
-
- --
- still under construction
-